package com.iversonx.facade.example_1.remote.domain;

import lombok.Data;

import java.util.Random;

/**
 *
 **/
@Data
public class OrderDetails {
    private int productNo;
    private String productName;
    private String productDescription;
    private float price;
    private float discountPercent;
    private String addressLine1;
    private String addressLine2;
    private int pinCode;
    private String cardNo;
    
    public OrderDetails(String productName, String prodDescription, float price,
            float discount, String addressLine1, String addressLine2,
            int pinCode, String cardNo) {
        this.productNo = new Random(1).nextInt(100);
        this.productName = productName;
        this.productDescription = prodDescription;
        this.price = price;
        this.discountPercent = discount;
        this.addressLine1 = addressLine1;
        this.addressLine2 = addressLine2;
        this.pinCode = pinCode;
        this.cardNo = cardNo;
    }
}
